.cq-setting {
	&.show {
		.cq-setting--mask {
			display: block;
		}
	}
}

.cq-setting--mask {
	--width-content: 390px;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.cq-setting--panel {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1000;
	width: 100%;
	height: auto;
	width: calc(100% - #{$page-container-padding * 2});
	max-width: $width-dialog;
	min-height: 360px;
	padding: 40px 0;
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.4) 0 0px 15px;
	background-color: var(--color-bg);
	transform: translate(-50%, -50%);
	transition: background 0.25s ease;
}

.cq-setting--bar {
	margin: 10px 5px 0 5px;
	padding: 0 20px;

	.cq-setting--title {
		max-width: var(--width-content);
		margin: 0 auto;
	}
}

.cq-setting--title {
	color: var(--color-text);
}

.cq-setting--close {
	position: absolute;
	top: 40px;
	right: 40px;
	width: 50px;
	height: 50px;
	transform: translate(50%, -50%);
	cursor: pointer;

	> i {
		position: absolute;
		top: 50%;
		left: 50%;
		display: block;
		width: 20px;
		height: 20px;
		border-color: var(--color-icon);
		transform: translate(-50%, -50%);

		&::before {
			display: block;
			content: '';
			position: absolute;
			top: 50%;
			left: 0;
			width: 100%;
			height: 0;
			border-bottom: 2px solid;
			border-color: inherit;
			transform: translateY(-50%) rotate(45deg);
			transition: all 0.25s;
		}

		&::after {
			display: block;
			content: '';
			position: absolute;
			top: 50%;
			left: 0;
			width: 100%;
			height: 0;
			border-bottom: 2px solid;
			border-color: inherit;
			transform: translateY(-50%) rotate(-45deg);
			transition: all 0.25s;
		}
	}

	&:hover {
		i {
			border-color: var(--theme-color);
		}
	}
}

.cq-setting--content {
	max-height: 350px;
	margin: 10px 5px 0 5px;
	padding: 0 20px;
	overflow-y: scroll;
	@include scrollbar(#ccc, #a9a9a9, var(--theme-color), 5px, 5px, transparent, transparent);
}

.cq-setting--group {
	max-width: var(--width-content);
	margin: 25px auto 0;

	&:first-child {
		margin-top: 10px;
	}
}

.cq-setting--itemlist {
	margin-top: 10px;
	padding: 5px 0;
	border-radius: 5px;
	border: 1px solid var(--color-border);
	background-color: var(--color-bg-light);
	transition: background 0.25s ease;
}

.cq-setting--item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 15px;
	border-bottom: 1px solid var(--color-border);

	// 手风琴组件
	&.is-accordion {
		flex-direction: column;
		padding: 0;
	}
	.cq-accordion {
		width: 100%;
		border: none;

		.cq-accordion--lable {
			padding: 8px 15px;
		}
	}

	&:last-child {
		border-bottom: none;
	}
}

.cq-setting--description {
	.cq-setting--title {
		font-weight: normal;

		+ p {
			margin-top: 3px;
		}
	}

	p {
		margin: 0;
		font-size: 12px;
		line-height: 1.4;
		color: #a1a1a1;
	}
}

.cq-setting--meta {
	margin-left: 10px;
	line-height: 1;
}

.cq-setting--childitemlist {
	padding: 0;
}
